<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> 
<html:html>
<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
</head>
<script language="javaScript" src="../js/calendar.js"></script>
<body>
	<table border="1" width="100%" id="table1" style="border-bottom:1px solid #C0C0C0; border-collapse: collapse; ">
		<tr>
			<td style=" border-bottom:1px solid #C0C0C0;">
				<bean:message key="currentposition"/>：
			</td>
		</tr>
	</table>
	<table border="0" width="100%" cellspacing="1" id="table1" style="border: 1px solid #C0C0C0">
	<html:form action="/addemp"  onsubmit="return submitAddemp()">
		<tr>
			<td height="25" align="left" bgcolor="#EEF2F7" colspan="2" width="100%">
			<b>&nbsp; <bean:message key="employee.add"/> </b></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.name"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="name" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />
			 <font color="#EC9B13">*</font></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.idcard"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="idcard" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" /> 
			</td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">
			&nbsp;
			<bean:message key="employee.gender"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:radio property="gender" value="M"/><bean:message key="male"/>&nbsp; 
			<html:radio property="gender" value="F"/><bean:message key="female"/></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.sector"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">
				&nbsp;<html:select property="sectorId" style="font-family: Tahoma; font-size: 11px">
					<html:options  collection="Sector"
								   property="sectorId"
								   labelProperty="sectorName"/>
				</html:select>			</td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.birthday"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">
			&nbsp;<html:text property="birthday" size="20" readonly="true"onblur="DeleteMonthView(birthday)" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />
			<input type="button" value="SelectDate" name="calButton" onclick="CreateMonthView(birthday)"  style="font-family: Tahoma; font-size: 11px" > 
			</td>
		</tr>
		<tr>
		<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.telno"/></td>
		<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="telNo" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />		<font color="#EC9B13"></font></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.familyno"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="familyNo" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />
			<font color="#EC9B13"></font></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.mobileno"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="mobileNo" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />
			<font color="#EC9B13"></font></td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.address"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="address" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />			</td>
		</tr>
		<tr>
			<td height="25" align="left" width="9%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp; <bean:message key="employee.email"/></td>
			<td height="25" align="left" width="90%" style="border-bottom: 1px dotted #C0C0C0">&nbsp;<html:text property="email" size="20" style="border:1px solid #C0C0C0; font-family: Tahoma; font-size: 11px" />			</td>
		</tr>	
		<tr>
			<td height="25" align="left" width="98%" colspan="2">
			&nbsp;<html:submit><bean:message key="submit"/></html:submit>
			<html:reset>Reset</html:reset>
			<html:link page="/index.do">[<bean:message key="back"/>]</html:link></td>
			
		</tr>
	</html:form>
	</table>
	
	</body>
</html:html>
	
	
	
<script language="javaScript">
var checkSubmitFlg = false;
function submitAddemp()
{

	
	if(addempForm.name.value=="")
	{
		alert("Please input name");
 		window.document.addempForm.name.focus();
 		return false;
  	}
  	if( checkSubmitFlg  == false)  
  	{
  		checkSubmitFlg = true;
  		return true ;
  	}
  	else
  	{
  		alert("You has added , please not again!");
  		return false ;
  	}
}
</script>









	

	
	
